import { defineStore } from 'pinia'


export const useStore = defineStore('storeId', {
    state:() => {
        return {
            counter: 0,
            name: 'Eduardo',
            isAdmin: true,
        }
    },
    getters:{
        counterPar(){
            console.log("getter");
            return this.counter + 100;
        }
    },
    actions:{
        changeCounter(val)
        {
            console.log("action");
            return this.counter += val;
        }
    }
})
